package com.a16.yuejian.yuejian.service;

import com.a16.yuejian.yuejian.javabean.Collected;
import com.a16.yuejian.yuejian.javabean.Img;
import com.a16.yuejian.yuejian.javabean.Success;
import com.a16.yuejian.yuejian.javabean.Train;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 55080 on 2017/10/19.
 */

public interface TrainService {
    @GET("index.php/api/Train/alltrain")
    Call<List<Train>> alltrain(
            @Query("grade")String grade
    );

    @GET("index.php/api/Train/gettrain")
    Call<Train> gettrain(
            @Query("trainid")String trainid
    );

    @GET("index.php/api/index/follow")
    Call<Success> follow(
            @Query("id")String id,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/api/index/isCollected")
    Call<Collected> isCollected(
            @Query("id")String id,
            @Query("uid")String uid,
            @Query("type")String type
    );

    @GET("index.php/api/Train/lunbo")
    Call<List<Img>> lunbo();
}
